package com.wisdytech.app.produceExecute.common;

import java.io.Serializable;
import java.util.List;

public class StandardReturnResult<T>  implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
    /**总数*/
    private Long total;
    /**数据列表*/
    private List<T> data;
    /**响应状态*/
    private Integer status;
    /**返回信息*/
    private String message;
    
	public StandardReturnResult() {
		
	}
	public StandardReturnResult(String message) {
		this.total = 0L;
		this.data = null;
		this.status = 1;
		this.message=message;
	}
	public StandardReturnResult(List<T> data) {
		this.data = data;
		this.status = 0;
	}
	public StandardReturnResult(long total, List<T> data) {
		this.total = total;
		this.data = data;
		this.status = 0;
	}
	
	public long getTotal() {
		return total;
	}
	public void setTotal(long total) {
		this.total = total;
	}
	public List<T> getData() {
		return data;
	}
	public void setData(List<T> data) {
		this.data = data;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}

    
}
